import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/views/Login'
import home from '@/views/home'
import welcome from '@/views/welcome/welcome'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/',
      name: 'home',
      component: home,
      redirect: {path: '/welcome'},
      children: [
        {
          name: 'welcome',
          path: 'welcome',
          component: welcome
        }
      ]
    }
  ]
})
